<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>视差滚动</title>
		<style>
			.g-word {
				height: 400px;
				background-color: gray;
				font-size: 36px;
				font-weight: bold;
				text-align: center;
				line-height: 400px;
			}
			.g-img {
				height: 400px;
				background-color: tan;
				background-image: url("./images/share\(1\)\(1\).png");
				background-size: cover;
				font-size: 36px;
				font-weight: bold;
				text-align: center;
				line-height: 400px;
				color: tomato;
				background-attachment: fixed;
			}
			.g-img:nth-child(4) {
				background-image: url("./images/share\(3\)\(1\).png");
			}
			.g-img:nth-child(6) {
				background-image: url("./images/share\(4\)\(1\).png");
			}
		</style>
	</head>
	<body>
		<div class="g-word">Text1</div>
		<div class="g-img">IMG1</div>
		<div class="g-word">Text2</div>
		<div class="g-img">IMG2</div>
		<div class="g-word">Text3</div>
		<div class="g-img">IMG3</div>
		<div class="g-word">Text4</div>
		<div class="g-img">IMG4</div>
	</body>
</html>
